For the last few years my most listened to genre in my Spotify Wrapped has been Rock Music. Not surprising, since a large part of my personal playlists contain this genre. There is, however, a lot of subgenres within Rock. After itās quick rise of popularity in the 1960ās, there have been a lot of different developments and movements. This is also the case in the music that I listen to, where there is a wide range of different subgenres. This got me thinking about what the differences between rock music in different time periods might be. The main focus of this portfolio will be to uncover these differences within the limits of the Spotify API. We will do so by looking at a few different topics for different tracks. Examples of these will include track-level features, chroma features, different chords used and tempo.
At first the plan was to look at rock as a whole for this comparison, but I soon found out that this would make the comparisons way to brought with all the different. This is why I narrowed the corpus down to three bands that each was very influential in their time: The Beatles in the 60ās, Nirvana in the 80ās/90ās and Coldplay in the modern era. For each band I made a playlist based on the ones provided by Spotify. These include the most popular tracks. I then removed all the live tracks, since those can intervene with this research. The playlists can be found in the links below:
The Beatles: https://open.spotify.com/playlist/18HKG7EtGQyvhL7t5lFXw6?si=943a7297af884c30
Nirvana: https://open.spotify.com/playlist/0G935Lqu0vrEVoPNZNFrqP?si=d99122f1223f407e
Coldplay: https://open.spotify.com/playlist/1j08FQSS1hD36ldvdVXP3W?si=b0ec1bff23c644e1
| Band Name | Number of Tracks | Total Duration (min) | First Album Release | Last Album Release |
|---|---|---|---|---|
| Coldplay | 48 | 213.3382 | 1999-10-11 | 2022-07-06 |
| Nirvana | 38 | 126.5581 | 1989-06-01 | 2004-11-23 |
| The Beatles | 50 | 141.8337 | 1963-03-22 | 2023-11-02 |
The Beatles:
Nirvana:
Coldplay:
The two plots on the left show the distribution of valence (the positiveness of a song) and energy (the intensity of a song) per band.
On the valence graph on the left, we can see that The Beatles have the most āpositiveā songs, while Coldplay has the most ānegativeā. These two distributions are not surprising and were somewhat expected beforehand. The Beatles have a more lively and upbeat feel, while Coldplay has a lot of more negative songs. Nirvana seems to fall in between the two, which I found interesting. This is because a lot of their songs contain negative subjects, such as anger. What is also interesting to seem is that the songs get more negative over time. However, just looking at things three bands is not enough to conclude this for all of rock music.
When looking at the energy graph on the right, Nirvana is the outlier. They have by far the highest level of energy per track with a median of 0.83. This is not surprising, since rock songs of this time period (especially in āgrunge rockā) are known for their high levels of intensity. Coldplay follows with a median of 0.63, while The Beatles have a median intensity of 0.43. I also found the results for The Beatles not surprising, since their tracks usually play more slow.
The plot on the left gives a more detailed look of the tempo graph made earlier. Here we can see that indeed tracks of Nirvana have a higher tempo and that the tracks of Coldplay and The Beatles are roughly equally distributed.
What is now also interesting to see is the standard deviation of the tempo for each track. There now seems to be a difference in tempo between The Beatles and Coldplay. According to the graph, The Beatles have more variation of tempo within their tracks then Coldplay. When we keep looking at the standard deviation of tempo, Nirvana seems to also be higher in this regard in comparison to the other two bands.
The graph on the left shows the performance of a random-forest classifier trying to distinguish the three artists. Using all features, the most important are listed below:
acousticness
instrumentalness
valence
duration
The classifier also found that some of the chroma are important during classification: c02, c05, c06 and c11. All these features were used to train the random-forest classifier eventually used.
Overall, the classifier performs really well.